import request from "../util/request";

export const addAdminRequest = (data)=>{
   return request.post('/addAdmin',data)
}

export const adminListRequest = ()=>{
    return request.get('/adminList')
}

export const deleteAdminRequest = (adminName)=>{
    return request.delete('/deleteAdmin',{
        params:{
            adminName
        }
    })
}
//登录请求
export const loginRequest = (data) => {
    return request.post("/login", data)
}
export const isloginRequest = ()=>{
    return request.get('/islogin')
}
export const logoutRequest = ()=>{
    return request.get('/logout')
}